Platform Explorer / Nuxeo Platform 2021

Contribution org.nuxeo.ecm.liveconnect.google.drive.core.converters--converter

This contribution is part of XML component org.nuxeo.ecm.liveconnect.google.drive.core.converters inside nuxeo-liveconnect-2021.1.19.jar /OSGI-INF/liveconnect-googledrive-convert-service-contrib.xml

Extension Point

Extension point converter of component ConversionServiceImpl.

Registration Order

2
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googlePDFExport">
          <sourceMimeType>application/vnd.google-apps</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
          <destinationMimeType>application/pdf</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleTextExport">
          <destinationMimeType>text/plain</destinationMimeType>
          <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
        </converter>
  • <converter name="google2text">
          <destinationMimeType>text/plain</destinationMimeType>
          <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
          <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
          <conversionSteps>
            <subconverter>googlePDFExport</subconverter>
            <subconverter>pdf2text</subconverter>
          </conversionSteps>
        </converter>
  • <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleHtmlExport">
          <destinationMimeType>text/html</destinationMimeType>
          <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
        </converter>

XML Source

<extension point="converter" target="org.nuxeo.ecm.core.convert.service.ConversionServiceImpl">

    <!-- PDF converter for Google Drive native files -->
    <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googlePDFExport">
      <sourceMimeType>application/vnd.google-apps</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
      <destinationMimeType>application/pdf</destinationMimeType>
    </converter>

    <!-- Text converter for files supporting text export -->
    <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleTextExport">
      <destinationMimeType>text/plain</destinationMimeType>
      <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.presentation</sourceMimeType>
    </converter>

    <!-- Text converter for files without a plain text export -->
    <converter name="google2text">
      <destinationMimeType>text/plain</destinationMimeType>
      <sourceMimeType>application/vnd.google-apps.spreadsheet</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.drawing</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.form</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.fusiontable</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.photo</sourceMimeType>
      <sourceMimeType>application/vnd.google-apps.script</sourceMimeType>
      <conversionSteps>
        <subconverter>googlePDFExport</subconverter>
        <subconverter>pdf2text</subconverter>
      </conversionSteps>
    </converter>

    <!-- HTML converter for files supporting HTML export -->
    <converter class="org.nuxeo.ecm.liveconnect.google.drive.converter.GoogleDriveBlobConverter" name="googleHtmlExport">
      <destinationMimeType>text/html</destinationMimeType>
      <sourceMimeType>application/vnd.google-apps.document</sourceMimeType>
    </converter>
  </extension>